package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.CouponOrderMapper;
import com.shunbo.convenient.service.CouponOrderService;
import com.shunbo.convenient.vo.CouponOrder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class CouponOrderServiceImpl implements CouponOrderService {

    @Resource
    private CouponOrderMapper couponOrderMapper;

    @Override
    public Integer save(CouponOrder obj) {
        return couponOrderMapper.save(obj);
    }

    @Override
    public Integer update(CouponOrder obj) {
        return couponOrderMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return couponOrderMapper.delete(obj);
    }

    @Override
    public CouponOrder findById(String obj) {
        return couponOrderMapper.findById(obj);
    }

    @Override
    public List<CouponOrder> findAll(CouponOrder obj) {
        return couponOrderMapper.findAll(obj);
    }
}
